package com.lgh.hotel.controller;

import com.lgh.hotel.service.StatisticsService;
import com.lgh.hotel.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "人数展示模块")
@RestController
@RequestMapping("statistics")
public class StatisticsController {

    @Autowired
    StatisticsService statisticsService;

    @ApiOperation("获取四季度入住人数")
    @GetMapping("/findall")
    public Result findall(){
        return statisticsService.findall();
    }

    @ApiOperation("获取入住情况")
    @GetMapping("/findallTable")
    public Result findallTable() {
        return statisticsService.findallTable();
    }
    @ApiOperation("获取房间类型")
    @GetMapping("/findallType")
    public Result findallType() {
        return statisticsService.findallType();
    }
}
